// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'


import router from './routers/index';
import store from "./store/index";
import "../static/css/reset.css";


Vue.config.productionTip = false;


// import settings
import settings from './settings'
Vue.prototype.$settings = settings;


// import ElementUI && use it
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);


// import axios && initiate
import axios from 'axios'
axios.defaults.withCredentials = true;  // allow ajax sent request along with cookie
Vue.prototype.$axios = axios;  // mount axios on vue


// 导入gt极验验证码
import '../static/js/gt';


// 注册vue-video-player
require('video.js/dist/video-js.css');
require('vue-video-player/src/custom-theme.css');
import VideoPlayer from 'vue-video-player'
Vue.use(VideoPlayer);


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,  // register router
  store,
  components: { App },
  template: '<App/>'
});
